#include<iostream>
#include <signal.h>
#include<sys/types.h>
using namespace std;

void sigccb(int n)
{
    cout<<endl<<n<<endl;
}

int main()
{
    struct sigaction act;
    act.sa_handler=sigccb;

    sigaction(SIGINT,&act,nullptr);
    while(true)
    {
        
    }
    return 0;
}